﻿@using ZBJF.Warranty.WebProvider
@{
    var currentUser = WebContext.Instance.CurrentUser;
}
<div id="header" class="navbar navbar-fixed-top">
    <div class="navbar-inner">
        <div class="brand">中保金服</div>
        <div class="nav-collapse">
            <ul id="headerMenu" class="nav">
                <li class="menu  active"><a class="menu" href="/" target="_self">后台管理</a></li>
            </ul>
            <ul class="nav pull-right">
                <li class="dropdown">
                    <img src="~/Images/account.png" />
                    <a style="display: inline; font-size: 20px; padding: 0; vertical-align: middle;" class="dropdown-toggle" data-toggle="dropdown" href="#" title="My Account">
                        @{
                            if (currentUser != null)
                            {
                                @Html.Raw(currentUser.UserDisPlayName)
                            }
                        } &nbsp;<span id="notifyNum" class="label label-info hide" style="display: none;"></span>
                    </a>
                    <ul class="dropdown-menu">
                        @if (currentUser != null)
                        {
                            <li><a href="javascript:void(0)" onclick="showLayerOpen('修改密码', '/System/admin/ModifyPassword/@currentUser.ID', '380px', '300px')" target="mainFrame"><i class="icon-lock"></i> 修改密码</a></li>
                            <li style="background: url(/Images/log-out.png) no-repeat 20px center; padding-left: 20px">
                                <a href="/Login/LogOut">登出</a>
                            </li>
                        }
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</div>
